package org.robotlegs.demos.lazyfsm
{
	import flash.display.DisplayObjectContainer;
	import org.robotlegs.adapters.SwiftSuspendersInjector;
	import org.robotlegs.adapters.SwiftSuspendersReflector;
	import org.robotlegs.mvcs.Context;
	import org.robotlegs.mvcs.ContextEvent;
	import org.robotlegs.demos.lazyfsm.controllers.commands.startup.*;

	public class LazyFSMContext extends Context
	{
		public function LazyFSMContext(contextView:DisplayObjectContainer)
		{
			super(contextView, new SwiftSuspendersInjector(), new SwiftSuspendersReflector());
		}

		override public function startup():void
		{
			// Map our startup commands
			/*	commandFactory.mapCommand(ContextEvent.STARTUP, PrepModelCommand, true);
			   commandFactory.mapCommand(ContextEvent.STARTUP, PrepControllerCommand, true);
			 commandFactory.mapCommand(ContextEvent.STARTUP, PrepServicesCommand, true);*/
			commandFactory.mapCommand(ContextEvent.STARTUP, PrepViewCommand, true);
			commandFactory.mapCommand(ContextEvent.STARTUP, StartupCommand, true);
			super.startup();
		}
	}
}